﻿$(function () {

    // hide issue detail section by default when site is loaded
    $(".issue-additional-details").toggle(false);
});


$(document).ready(function () {

    $(".issue-expand-toggle").click(function (e) {
        $(this).parent().parent().parent().find(".issue-additional-details").toggle();
    });

    $(".issue-details-details").click(function (e) {
        $(".issue-details-list").removeClass("selected");
        $(".issue-details-details").addClass("selected");
        $(".issue-additional-details").toggle(true);
    });

    $(".issue-details-list").click(function (e) {
        $(".issue-details-list").addClass("selected");
        $(".issue-details-details").removeClass("selected");
        $(".issue-additional-details").toggle(false);
    });

});